import Vue from 'vue'
import moment from 'moment'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/index.css'
import axios from 'axios'
// 引入字体文件
import './fonts/iconfont.css'

// 配置请求的根路径
axios.defaults.baseURL = 'http://119.23.53.78:9000/'
Vue.prototype.$http = axios
Vue.config.productionTip = false
    // 定义一个全局过滤器
Vue.filter('dataFormate', function(datastr, pattern = 'YYYY-MM-DD hh:mm:ss') {
    return moment(datastr).format(pattern)
})
new Vue({
    router,
    render: h => h(App)
}).$mount('#app')